import { createClient } from '@supabase/supabase-js'

// 添加类型定义
export const Tables = {
  STUDENTS: 'students',
  CLASSES: 'classes',
  GROUPS: 'groups'
}

export const Status = {
  ACTIVE: 'active',
  INACTIVE: 'inactive'
}

const supabaseUrl = import.meta.env.VITE_SUPABASE_URL
const supabaseKey = import.meta.env.VITE_SUPABASE_ANON_KEY

export const supabase = createClient(supabaseUrl, supabaseKey)
